package net.kts.util.time;

import android.util.Log;

public class TimeCheck {
	private String msg;
	private String tag;
	private long before;
	private long aftert;
	
	public TimeCheck(String tag, String msg) {
		super();
		this.tag = tag;
		this.msg = msg;
	}
	public TimeCheck(String msg) {
		super();
		this.tag = "timeCheck";
		this.msg = msg;
	}
	public void start(){
		before = System.currentTimeMillis();
	}
	public void end(){
		aftert = System.currentTimeMillis();
		printReuslt();
	}
	public void printReuslt(){
		Log.e(tag, msg+" : "+(aftert - before));
	}
	public long getResult(){
		return before = aftert;
	}
}
